package One;

import java.util.Comparator;

public class Rules implements Comparator<Dog>{



	@Override
	public int compare(Dog o1, Dog o2) {
		if(o1.name==o2.name)return 2;
		if(o1.name.equals(o1.name)){
			return 3;
		}else{
			return 1;
		}
	}

}
